package template_mode

import (
	"fmt"
)

type MacOS struct {
	WriteCode
}

func NewMacOs() *MacOS {
	m := new(MacOS)
	m.WriteCode.Write = m.Write
	m.WriteCode.OpenGoLand = m.OpenGoLand
	m.WriteCode.OpenComputer = m.OpenComputer
	return m
}

func (m *MacOS) OpenComputer() {
	fmt.Println("mac 打开电脑")
}

func (m *MacOS) OpenGoLand() {
	fmt.Println("macos 打开goland")
}

func (m *MacOS) Write() {
	fmt.Println("使用macos开始写")
}
